<#macro pkPath pkList funcs>
<#list pkList as pk>{${pk.entityProName}<#if (pk.jdbcType=='CHAR')>:\\w{${pk.columnSize}}</#if>}<#if pk_has_next>/</#if></#list></#macro>
<#macro pkPathParams pkList funcs>
<#list pkList as pk>@PathParam("${pk.entityProName}") <#if pk.javaType=='Date'>String<#else>${pk.javaType}</#if> ${pk.entityProName}<#if pk_has_next>,</#if></#list></#macro>
<#-- apidoc 方法请求路由示例 -->
<#macro pkSampleRequest path pkList funcs sampleData>
${path}<#list pkList as pk>/${funcs.DbDocUtil.getValue(pk.entityProName,sampleData,"{"+pk.entityProName+"}")}</#list></#macro>
<#-- apidoc apiSuccessExample -->
<#macro apiSuccessExample path colList funcs sampleData>
${path}/<#list colList as col>"${col.entityProName}":${funcs.DbDocUtil.getValue(col.entityProName,sampleData)}<#if col_has_next>,</#if></#list></#macro>
<#-- service中 参数为主键的 -->
<#macro invokePKProSetter pkList funcs objectName="pk">
    <#list pkList as pk>
    <#if (pk.javaType == 'Date')>
        LocalDateTime.parse(${pk.entityProName},LocalDateTimeUtil.DATE_TIME_FORMATTER_YMD_HMS);
    <#else>
        ${objectName}.set${funcs.DbDocUtil.toCamel(pk.columnName,true)}(${pk.entityProName});
    </#if>
    </#list>
</#macro>
<#-- service中 方法签名为主键的. eg. 多主键: RelWiuWiustKey pk  单主键: String wiuCd -->
<#macro serviceMethodPKParams pkList funcs baseClassName>
<#if (pkList?size>1)>${baseClassName}Key pk<#else>${pkList[0].javaType} ${funcs.DbDocUtil.toCamel(pkList[0].columnName)}</#if></#macro>

<#-- service中 参数值为主键的. eg. 多主键: relWiuWiustKey  单主键: wiuCd. hasRemark(默认false) 是否加上注释信息,用于javadoc @param -->
<#macro serviceMethodPKParamValues pkList funcs baseInstanceName objectName="" hasRemark=false>
<#if (pkList?size>1)><#if objectName=="">${baseInstanceName}Key<#else >${objectName}</#if><#if hasRemark> 主键</#if><#else>${pkList[0].entityProName}<#if hasRemark> ${pkList[0].remarks}</#if></#if></#macro>

<#-- 主键的java class name. eg. 多主键: RelWiuWiustKey  单主键: String. -->
<#macro serviceMethodPKType pkList baseClassName>
<#if (pkList?size>1)>${baseClassName}Key<#else>${pkList[0].javaType}</#if></#macro>

<#-- 主键的java class name. eg. 多主键: RelWiuWiustKey  单主键: String. -->
<#macro serviceMethodPKFullType pkList baseClassName basePackage ext="Key"><#if (pkList?size>1)>${basePackage}.entities.${baseClassName}${ext}<#elseif (pkList[0].javaType == 'Date')>java.time.LocalDateTime<#else >java.lang.${pkList[0].javaType}</#if></#macro>

